# Python __repr__()方法：显示属性
class CLanguage:
    pass

clangs = CLanguage()
print(clangs)
print()

class CLanguage:
    def __init__(self):
        self.name = "C语言中文网"
        self.add = "http://c.biancheng.net"
    
    def __repr__(self):
        return "CLanguage[name = {}, add = {}]".format(self.name, self.add)

clangs = CLanguage()
print(clangs)
